package cc.linker.steplink.crm.merchant.dao.acs;

import cc.linker.steplink.crm.merchant.pojo.PromoterAccountPo;
import cc.linker.steplink.crm.merchant.pojo.PromoterPersonalAccountPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PromoterAccountDao {

    List<PromoterAccountPo> findPromoterList(Map map);

    void updateAccount(Map<Object, Object> map);

    List<PromoterPersonalAccountPo> findPromoterAccount(String customerId);

    String findAdminName(String adminId);

    List<PromoterAccountPo> findPromoterBusiList(Map<String, Object> searchMap);

    Integer findAmount(String customerId);

    Integer findBusiAmount(String customerId);

    Integer findReturnAmount(String customerId);

    Integer findBookeep(String customerId);

    List<Map<String, Object>> agentList(String customerId);

    Long getAmount(@Param("customerIds") String customerIds,@Param("startTime") String startTime,@Param("endTime") String endTime);

    Long getScoreAmount(@Param("customerIds") String customerIds,@Param("startTime") String startTime,@Param("endTime") String endTime);

    String getCustomerIDS(String customerID);
}
